package org.example.platform.design.adapter;

/**
 * 适配器
 */
public class Test {
    public static void main(String[] args) {
//        TriplePin triplePin= new TV(); 报错提示不兼容

        DualPin  adapter = new TV();
        TriplePin triplePin = new Adapter(adapter);
        triplePin.electrify(1,0,-1);


        // 专属适配器
        TriplePin triplePin2 = new  Adapter2();
        triplePin2.electrify(1,0,-1);
    }
}
